package cn.com.dcsgo.feign.fallback;

import cn.com.dcsgo.dto.ShopInfoDTO;
import cn.com.dcsgo.feign.ShopFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * ShopFeignClient 兜底回调
 *
 * @author Dcsgo
 * @since 2025/11/15 15:18
 */
@Slf4j
@Component
public class ShopFeignClientFallBack implements ShopFeignClient {
    @Override
    public List<ShopInfoDTO> getShopInfoDTOList(Set<Long> shopIds) {
        log.error("RPC错误：店铺的远程调用 getShopInfoDTOList 走了兜底回调");
        return new ArrayList<>(0);
    }
}
